﻿#include "MCUCodec.h"

#include "MCUCodec_SetInterval_MEMSData.h"
#include "MCUCodec_SetInterval_TurnTableState.h"

MCUCodec::MCUCodec()
{
  setObjectName(getClassNameFirstLow<MCUCodec>());
}

MCUCodec::~MCUCodec()
{
}

void MCUCodec::decode(QByteArray data)
{
  codecMap.value(data.at(0))->decode(data.mid(1));
}

void MCUCodec::addToCodecMap(uchar type,MCUCodecBase* mCUCodecBase)
{
  codecMap.insert(type,mCUCodecBase);
}

void MCUCodec::objectAutoInjection(QHash<QString,QObject*>* objMap)
{
  (void)objMap;
}



